#include <iostream>

#include "ListHandler.h"
#include "HandlerRegister.h"

static HandlerProvider provider("ls", ListHandler()); // 登记一个prototype 对象

IHandler* ListHandler::Clone() const
{
	return new ListHandler(*this);
}

void ListHandler::Handle(const std::string& commandLine)
{
	std::cout << "list files in current directory" << std::endl;
}
